package com.scoressystem.mapper;

import com.scoressystem.pojo.ScoreBean;
import com.scoressystem.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentMapper {
    List<Student> selectAllStudent();
    List<Student> selectStudentBySexAndAge(Map<String,Object> map);
    int updateStudent(Student student);
    int deleteStudents(String [] nos);
    List<Student> SelectAllStudentBYteacher(String id);
    //分页每页数据
    List<Student> SelectAllStudentBypage(Map<String,Object> map);
    //总条数
    long SelectAllStudentCount(Map<String,Object> map);
    int insertStudent(Student student);
    int searchAllByStuNoInt(Student student);
    int deleteByStuNoInt(Student student);
    List<Student> selectAllStudentBydel();
    Student selectStudentlogin(@Param("stuNo") String stuNo , @Param("stuPass")String stuPass );
    List<ScoreBean> selectAllScorebean(String stuId);
    Integer updateStudentpass( @Param("stuPass")String stuPass,@Param("stuNo") String stuNo);
}
